@import '~antd/es/style/themes/default.less';

html,
body,
#root {
  height: 100%;
}

.colorWeak {
  filter: invert(80%);
}

.ant-layout {
  min-height: 100vh;
}

canvas {
  display: block;
}

body {
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

ul,
ol {
  list-style: none;
}

@media (max-width: @screen-xs) {
  .ant-table {
    width: 100%;
    overflow-x: auto;

    &-thead>tr,
    &-tbody>tr {

      >th,
      >td {
        white-space: pre;

        >span {
          display: block;
        }
      }
    }
  }
}

// 兼容IE11
@media screen and(-ms-high-contrast: active),
(-ms-high-contrast: none) {
  body .ant-design-pro>.ant-layout {
    min-height: 100vh;
  }
}

// 修改左边路由框title大小
.ant-design-pro {
  .ant-layout-has-sider {
    .ant-layout-sider {
      .ant-layout-sider-children {
        .ant-pro-sider-logo {
          padding: 16px 10px;

          img {
            width: 30px;
            height: 30px;
          }

          h1 {
            padding: 0;
            margin: 0 0 0 5px;
            font-size: 16px;
          }
        }
      }
    }
  }
}
